package com.stgl.service;

import com.stgl.dao.TeacherDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Service
public class TeacherService {
    @Autowired
    private TeacherDao teacherDao;

    public List<Map<String,Object>>Search_Teacher(Map<String,Object>gmap)
    {
        List<Map<String,Object>>list1=teacherDao.Search_Teacher(gmap);
        return list1;
    }

    public void del_Teacher(Map<String,Object>gmap)
    {
        teacherDao.del_Teacher(gmap);
    }


    public int Insert_Teacher(Map<String,Object>gmap)
    {
       return teacherDao.Insert_Teacher(gmap);
    }


    public int Edit_Teacher(Map<String,Object>gmap)
    {
        return teacherDao.Edit_Teacher(gmap);
    }

    public List<Map<String,Object>>GetTeacherByTname(Map<String,Object>gmap)
    {
        List<Map<String,Object>>list1=teacherDao.GetTeacherByTname(gmap);
        return list1;
    }

}
